package com.h1.staffmanage.service;

import com.h1.staffmanage.entity.RespBean;
import com.h1.staffmanage.entity.TDepartment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mengfanyu
 * @since 2022-06-23
 */
public interface TDepartmentService extends IService<TDepartment> {
    /**
     * 获取所有部门
     *
     * @return
     */
    List<TDepartment> getAllDepartments();

    /**
     * 添加部门
     *
     * @param dep
     * @return
     */
    RespBean addDep(TDepartment dep);

    /**
     * 删除部门
     *
     * @param id
     * @return
     */
    RespBean deleteDep(Integer id);
}
